<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <p>vue2的基本使用</p>

    <ul>
        <li v-for="ele in userInfo">{{ ele }}</li>
    </ul>

    <button @click="changeHandler">操作数据</button>

</div>
</body>
<script src="js/vue3.js"></script>

<script type="text/javascript">

    const user = {
        id: 12,
        name: 'andy',
        get value() {
            return this.name;
        }
    }
    Reflect.defineProperty(user, 'salary', {
        get() {
            return '工资保密';
        }
    })
    console.log(user.salary);

    Reflect.deleteProperty(user, 'id')

    console.log(user);

    console.log(Reflect.has(user, 'name'));

    console.log(Reflect.get(user, 'name'));

    Reflect.set(user, 'name', 'mark');

    console.log(user);


</script>

</html>
